package com.liezh.abstract_factory.factory;

import com.liezh.abstract_factory.product.PMScrollBar;
import com.liezh.abstract_factory.product.PMWindow;

/**
 * 具体工厂创建具体的产品
 */
public class PMWidgetFactory implements WidgetFactory {


    public PMScrollBar createScrollBar() {
        System.out.println("生成 PMScrollBar");
        return new PMScrollBar();
    }

    public PMWindow createWindow() {
        System.out.println("生成 PMWindow");
        return new PMWindow();
    }
}
